<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreatePagosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreatePagosLabel_nroRecibo}" for="nroRecibo" />
                    <h:inputText id="nroRecibo" value="#{pagosController.selected.nroRecibo}" title="#{bundle.CreatePagosTitle_nroRecibo}" required="true" requiredMessage="#{bundle.CreatePagosRequiredMessage_nroRecibo}"/>
                    <h:outputLabel value="#{bundle.CreatePagosLabel_fecha}" for="fecha" />
                    <h:inputText id="fecha" value="#{pagosController.selected.fecha}" title="#{bundle.CreatePagosTitle_fecha}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreatePagosLabel_monto}" for="monto" />
                    <h:inputText id="monto" value="#{pagosController.selected.monto}" title="#{bundle.CreatePagosTitle_monto}" />
                    <h:outputLabel value="#{bundle.CreatePagosLabel_cuotasACobrar}" for="cuotasACobrar" />
                    <h:selectOneMenu id="cuotasACobrar" value="#{pagosController.selected.cuotasACobrar}" title="#{bundle.CreatePagosTitle_cuotasACobrar}" >
                        <f:selectItems value="#{cuotasACobrarController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreatePagosLabel_codCliente}" for="codCliente" />
                    <h:selectOneMenu id="codCliente" value="#{pagosController.selected.codCliente}" title="#{bundle.CreatePagosTitle_codCliente}" >
                        <f:selectItems value="#{clientesController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{pagosController.create}" value="#{bundle.CreatePagosSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{pagosController.prepareList}" value="#{bundle.CreatePagosShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.CreatePagosIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
